Module implementing a node visitor to check the use of sys.version and sys.version_info.
| None |
| SysVersionVisitor | Class implementing a node visitor to check the use of sys.version and sys.version_info. |
| None |
Class implementing a node visitor to check the use of sys.version and sys.version_info.
Note: This class is modeled after flake8-2020 v1.8.1.
| None |
| None |
| SysVersionVisitor | Constructor |
| __isSys | Private method to check for a reference to sys attribute. |
| __isSysVersionUpperSlice | Private method to check the upper slice of sys.version. |
| visit_Attribute | Public method to handle an attribute. |
| visit_Compare | Public method to handle a comparison. |
| visit_ImportFrom | Public method to handle a from ... |
| visit_Name | Public method to handle an name. |
| visit_Subscript | Public method to handle a subscript. |
| None |
Constructor
Private method to check for a reference to sys attribute.
Private method to check the upper slice of sys.version.
Public method to handle an attribute.
Public method to handle a comparison.
Public method to handle a from ... import ... statement.
Public method to handle an name.
Public method to handle a subscript.